<?php
namespace app\index\validate;

use think\Validate;

class Warehouse extends Validate
{
    protected $rule = [
        'name'  =>  'require|max:60',
        'ware_house_code'=>'require',
        'location_code'=>'require',
        'address'=>'require',
        'driver_work_hour'=>'require'
    ];
    protected $message  =   [
        'name.require' => '名称必须填写',
        'ware_house_code.require' => '代码必须填写',
        'location_code.require' => '编号必须填写',
        'address.require' => '地址必须填写',
        'driver_work_hour.require' => '司机工作时长必须填写',
    ];


}